package com.pactera.madp.cp.api.vo.wechat;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
* @Description: 微信公众号素材展示对象
* @Author: yushen.qi
* @Date: 2021/7/29
*/
@Data
public class WechatMarketingVO {

    @ApiModelProperty(value = "该类型的素材的总数")
    private Integer totalCount;

    @ApiModelProperty(value = "本次调用获取的素材的数量")
    private Integer itemCount;

    private List<MarketingListVO> marketingListVO;
    @Data
    public static class MarketingListVO{

        @ApiModelProperty(value = "图文信息内容")
        private String content;
        @ApiModelProperty(value = "素材唯一id")
        private String mediaId;
        @ApiModelProperty(value = "素材更新时间")
        private String updateTime;

        private List<MarketingVO> marketingVO;
        @Data
        public static class MarketingVO{

            @ApiModelProperty(value = "图文消息的标题")
            private String title;

            @ApiModelProperty(value = "图文消息的封面图片素材id（必须是永久mediaID）")
            private String thumbMediaId;

            @ApiModelProperty(value = "是否显示封面，0为false，即不显示，1为true，即显示")
            private Integer showCoverPic;

            @ApiModelProperty(value = "作者")
            private String author;

            @ApiModelProperty(value = "图文信息摘要")
            private String digest;

            @ApiModelProperty(value = "图文信息内容")
            private String content;

            @ApiModelProperty(value = "图文url")
            private String url;

            @ApiModelProperty(value = "图文原url")
            private String contentSourceUrl;

            @ApiModelProperty(value = "文件名称")
            private String name;

        }

    }

}
